﻿using Shop.RemoteModel.GoodsSpec.Model;

namespace Shop.StoreGatewayModular.Interface
{
    public interface IGoodsSpecService
    {
        bool SetSkuState (SkuStateSet state);
        void SyncSku (long goodsId);
        Dictionary<long, int> SetSpecSort (long id, int sort);
        Dictionary<long, int> SetGroupSort (long id, int sort);
        GoodsSpecGroup[] GetSpecGroup (long goodsId);
        GoodsSpecGroup[] Sync (long goodsId, long categoryId);
        GoodsSpecSku[] GetSpecSku (long goodsId);
        bool SetSpec (long id, GoodsSpecSet datum);
        void DeleteSpec (long id);

        GoodsSpec AddSpec (GoodsSpecAdd datum);

        bool SetGroup (long id, string name);

        long AddGroup (SpecGroupAdd datum);

        void DeleteGroup (long id);
        void DeleteSkuSpec (long goodsId, long[] specId);
    }
}